package entities;

import services.impl.StandardOPs;
import java.util.List;
import java.util.LinkedList;
import java.util.ArrayList;
import java.util.Arrays;
import java.time.LocalDate;
import java.io.Serializable;
import java.lang.reflect.Method;

public class StudentInTeam implements Serializable {
	
	/* all primary attributes */
	private String TeamId;
	private String StudentId;
	
	/* all references */
	private List<Student> TeamHasStudent = new LinkedList<Student>(); 
	private List<Team> StudentInTeam = new LinkedList<Team>(); 
	
	/* all get and set functions */
	public String getTeamId() {
		return TeamId;
	}	
	
	public void setTeamId(String teamid) {
		this.TeamId = teamid;
	}
	public String getStudentId() {
		return StudentId;
	}	
	
	public void setStudentId(String studentid) {
		this.StudentId = studentid;
	}
	
	/* all functions for reference*/
	public List<Student> getTeamHasStudent() {
		return TeamHasStudent;
	}	
	
	public void addTeamHasStudent(Student student) {
		this.TeamHasStudent.add(student);
	}
	
	public void deleteTeamHasStudent(Student student) {
		this.TeamHasStudent.remove(student);
	}
	public List<Team> getStudentInTeam() {
		return StudentInTeam;
	}	
	
	public void addStudentInTeam(Team team) {
		this.StudentInTeam.add(team);
	}
	
	public void deleteStudentInTeam(Team team) {
		this.StudentInTeam.remove(team);
	}
	


}
